package org.dx.oho.controller;

import org.dx.oho.service.RkzService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * create by duanx 2021/6/27
 *@description： todo
 *@classname: RkzController
 *@author: duanx
 *@date: 2021/6/27 16:17
 **/
@Controller
@RequestMapping(value = "/rkz")
public class RkzController {
    private Logger logger = LoggerFactory.getLogger(AreaController.class);
    private final RkzService rkzService;

    public RkzController(RkzService rkzService) {
        this.rkzService = rkzService;
    }

    @ResponseBody
    @RequestMapping(value = "/dataVisualization",method = RequestMethod.GET)
    public String getResult(){
        return rkzService.dataVisualization("2021","2021");
    }



}
